package com.ssm.zyn.dao;

import com.ssm.zyn.eo.AnswerEOpage;
import com.ssm.zyn.model.Answer;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 操作数据库方法的对接
 */
@Mapper
@Component
public interface AnswerMapper {
    //添加
    int insertAnswer(Answer answer);
    //通过教师编号获取数量
    int getTidCount(Integer tid);
    //通过主键更新
    int updateAnswer(Answer answer);
    //通过主键删除
    int delAnswer(Integer aid);
    //根据条件获取相关信息
    List<AnswerEOpage> getWhereAll(AnswerEOpage answerEOpage);
}
